tools/libxc: Avoid cacheflush toolstack hypercalls on x86
authorAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 24 Sep 2014 16:28:15 +0000 (17:28 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Thu, 25 Sep 2014 12:02:44 +0000 (13:02 +0100)
commitc85c5adb7806e59874e737fa98562c3d123ee3f5
treed138c97125562799d9b6f26047f3d64603787464
parent43103612f62fb5d088bcbb8d5fcfcfeed7858b7c
tools/libxc: Avoid cacheflush toolstack hypercalls on x86

XEN_DOMCTL_cacheflush hypercalls are (and will always be) -ENOSYS on x86, but
xc_domain_cacheflush() is called often during domain build and migrate for
correct behaviour on ARM.

Stub xc_domain_cacheflush() out on x86 to remove its pressure on the global
domctl lock, and the hypercall overhead (which applies further pressure to the
already heavily-contended TLB flush lock).

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
CC: Keir Fraser <keir@xen.org>
CC: Jan Beulich <JBeulich@suse.com>
CC: Tim Deegan <tim@xen.org>
CC: Ian Campbell <Ian.Campbell@citrix.com>
CC: Ian Jackson <Ian.Jackson@eu.citrix.com>
CC: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxc/xc_domain.c